import { request } from './request.js'

export default {
    // 获取商品详情
    getGoodsDetail: function(params) {
        return request('goods/v1/detail', params)
    },
    // 获取商品属性
    getGoodsAttr: function(params) {
        return request('goods/v1/buy/page', params)
    },
    // 获取商品属性
    getSupplierInfo: function(params) {
        return request('goods/v1/supplier', params)
    },
    // 上强推！
    addRecommend: function(params) {
        return request('goods/v1/recommend', params)
    },
    // 搜索商品
    searchGoods: function(params) {
        return request('goods/v1/search', params)
    },
    // 搜索热门关键词
    hotSearch: function(params) {
        return request('goods/v1/hot/search', params)
    },
    // 商品列表
    getGoodsList: function(params) {
        return request('goods/v1/list', params)
    }
}